package com.smmisia.article.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.smmisia.article.dto.address.AddressDTO;
import com.smmisia.article.dto.address.UpdateAddressDTO;
import com.smmisia.article.entity.Address;
import com.smmisia.common.Result.Result;

import java.util.List;
import java.util.Map;


public interface AddressService extends IService<Address> {

    Result<Map<Integer,String>> getProvince();

    Result<Map<Integer, String>> getCity(Integer provinceId);

    Result<Map<Integer, String>> getCounty(Integer provinceId);

    Result<Address> add(AddressDTO addressDTO);

    Result<String> delete(Integer id);

    Result<Address> updateAddress(UpdateAddressDTO updateAddressDTO);

    Result<List<Address>> getInfo();
}
